﻿using Hangjing.Common;
using Hangjing.Model;
using Hangjing.SQLServerDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

/// <summary>
/// 配送员通知
/// </summary>
public partial class appH5_delivernotice : System.Web.UI.Page
{
    /// <summary>
    /// webview获取信息
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        int id = HjNetHelper.GetQueryInt("did", 0); //配送员编号
        DeliverGroupInfo model = new DeliverGroup().GetDeliverNotice(id);

        if (model == null)
        {
            model = new DeliverGroupInfo();
            model.hovepic = "暂无通知";
        }

        List<DeliverGroupInfo> list = new List<DeliverGroupInfo>();
        list.Add(model);

        WebUtility.BindRepeater(rptdata, list);

        //已读取

        noticereadlogInfo log = new noticereadlogInfo();
        log.mtype = 1;
        log.userid = id;
        log.addtime = DateTime.Now;
        log.noticeid = 0;
        log.reveint1 = 0;
        log.reveint2 = 0;
        log.revevar1 = "";
        log.revevar2 = "";

        new noticereadlog().Add(log);
    }
}